package com.longteng.lesson2;



import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by Administrator
 * DATE : 2018/4/25
 * TIME : 23:24
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:qq@163.com">Administrator</a>
 */
@SpringBootApplication
//@ImportResource(locations = {"db.xml"})
@PropertySource(value = "/config/db.properties")
//@EnableScheduling
public class SpringbootApplication {
    /**
     * 这个启动类一定要放在上层包包含子包
     * 子包就是所谓的com.longteng.lesson.xxx,所以要将Application类要放在com.longteng.lesson包下。
     * **/
    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }
}
